#
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

ADD_SUBDIRECTORY(tests)

SET(SRCS
  logger.cc
  script_runtime_manager.cc
  scriptable_array.cc
  scriptable_helper.cc
  signals.cc
  slot.cc
  small_object.cc
  string_utils.cc
  unicode_utils.cc
  variant.cc
)

ADD_LIBRARY(csconnect${CSCONNECT_EPOCH} SHARED ${SRCS})
TARGET_LINK_LIBRARIES(csconnect${CSCONNECT_EPOCH} ${LIBS})
OUTPUT_LIBRARY(csconnect${CSCONNECT_EPOCH})

INSTALL(FILES
  common.h
  logger.h
  script_context_interface.h
  script_runtime_interface.h
  script_runtime_manager.h
  scriptable_array.h
  scriptable_helper.h
  scriptable_holder.h
  scriptable_interface.h
  scriptable_map.h
  signals.h
  slot.h
  small_object.h
  string_utils.h
  unicode_utils.h
  variant.h
  DESTINATION ${CSCONNECT_INCLUDE_DIR}/csconnect COMPONENT Devel
)

INSTALL(FILES
  ${CMAKE_BINARY_DIR}/csconnect/sysdeps.h
  DESTINATION ${CSCONNECT_SYSDEPS_INCLUDE_DIR}/csconnect COMPONENT Devel
)

INSTALL_PKG_CONFIG(libcsconnect)
